package com.imooc.common._this;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class User {
    private Long id ;

    private String name;



    private List<Role> roles;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Map<String, Object>  save() {

        Map<String, Object> map = new HashMap<>();

        map.put("test", this);

        return map;

    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
}
